﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ControllerClient
{
    public partial class Form2 : Form
    {
        string iconPattern = "kcrx";
        public Form2(string str)
        {
            iconPattern = str+"good";
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Equals( iconPattern))
            {
                this.DialogResult = DialogResult.OK;
                this.Close();
            }
            else
            {

                MessageBox.Show("密码不正确");
            }
        }
    }
}
